﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PlayerDetails.aspx.cs" Inherits="IL2SWA.PlayerDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1><asp:Label ID="LabelPlayerDetails" runat="server" Text="<%$ Resources:Strings, PlayerDetails %>"></asp:Label></h1>
    <asp:ListBox ID="RegisteredPlayers" runat="server" AutoPostBack="true"
        onselectedindexchanged="RegisteredPlayers_SelectedIndexChanged"></asp:ListBox> 
    <p>
        <asp:Label ID="SelectedPlayer" runat="server" Text="Label"></asp:Label>
    </p>
    
    <asp:GridView ID="PlayerHighLevelView" runat="server" emptydatatext="<%$ Resources:Strings, NoPlayerData %>" autogeneratecolumns="false" RowStyle-VerticalAlign="Top">
    <columns>
             <asp:BoundField HeaderText="<%$ Resources:Strings, GroundDestroyed %>" DataField="GndDestroyed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, AirDestroyedHuman %>" DataField="AirDestroyedHuman" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, AirDestroyedAI %>" DataField="AirDestroyedAI" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, ShotDownByAI %>" DataField="ShotDownByAI" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, ShotDownByHuman %>" DataField="ShotDownByHuman" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Sorties %>" DataField="TakeOffs" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Landed %>" DataField="Landed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Crashed %>" DataField="Crashed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, BridgesDestroyed %>" DataField="BridgesDestroyed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, KDAir %>" DataField="KillDeathRatioAir" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, KDGround %>" DataField="KillDeathRatioGnd" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
     <p>
        <asp:Label ID="AliveStreak" runat="server" Text="Label"></asp:Label>
    </p>
    
    <asp:GridView ID="AliveStreaks" runat="server" emptydatatext="<%$ Resources:Strings, NoAliveStreakData %>" autogeneratecolumns="false" RowStyle-VerticalAlign="Top">
    <columns>
            <asp:BoundField HeaderText="Streak Type" DataField="StreakType" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Sorties Alive" DataField="SortiesAlive" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Ground Destroyed" DataField="GndDestroyed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Air Destroyed(Human)" DataField="AirDestroyedHuman" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Air Destroyed(AI)" DataField="AirDestroyedAI" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Shot Down AI" DataField="ShotDownByAI" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Shot Down Human" DataField="ShotDownByHuman" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Sorties" DataField="TakeOffs" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Landed" DataField="Landed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="Crashed" DataField="Crashed" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    <p>
        <asp:Label ID="PlayerKilledByHumans" runat="server" Text="Label"></asp:Label>
    </p>
    
    <asp:GridView ID="PlayerKilledByHuman" runat="server" emptydatatext="<%$ Resources:Strings, NoPlayerData %>" autogeneratecolumns="false">
    <columns>
             <asp:HyperLinkField HeaderText="<%$ Resources:Strings, PlayerName %>" DataNavigateUrlFields="AttackerUser" DataNavigateUrlFormatString="~/PlayerDetails.aspx?PlayerName={0}" DataTextField="AttackerUser" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>             
             <asp:BoundField HeaderText="<%$ Resources:Strings, Aircraft %>" DataField="AttackerUserObject" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:HyperLinkField HeaderText="<%$ Resources:Strings, Mission %>" DataNavigateUrlFields="MissionName" DataNavigateUrlFormatString="~/MissionDetails.aspx?MissionName={0}" DataTextField="MissionName" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, FlownOn %>" DataField="MissionDateTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, EventTime %>" DataField="EventTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, WasPlayerKilled %>" DataField="WasPlayerKilled" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
      <p>
        <asp:Label ID="PlayerKilledByAIs" runat="server" Text="Label"></asp:Label>
    </p>
    
    <asp:GridView ID="PlayerKilledByAI" runat="server" emptydatatext="<%$ Resources:Strings, NoPlayerData %>" autogeneratecolumns="false">
    <columns>
             <asp:HyperLinkField HeaderText="<%$ Resources:Strings, PlayerName %>" DataNavigateUrlFields="AttackerUser" DataNavigateUrlFormatString="~/PlayerDetails.aspx?PlayerName={0}" DataTextField="AttackerUser" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>             
             <asp:BoundField HeaderText="<%$ Resources:Strings, Aircraft %>" DataField="AttackerUserObject" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:HyperLinkField HeaderText="<%$ Resources:Strings, Mission %>" DataNavigateUrlFields="MissionName" DataNavigateUrlFormatString="~/MissionDetails.aspx?MissionName={0}" DataTextField="MissionName" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, FlownOn %>" DataField="MissionDateTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, EventTime %>" DataField="EventTime" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, WasPlayerKilled %>" DataField="WasPlayerKilled" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    <p>
        <asp:Label ID="HumanAirKills" runat="server" Text="Label"></asp:Label>
    </p>
    <div>
    <asp:GridView ID="PlayerHumanAirKills" runat="server" emptydatatext="<%$ Resources:Strings, NoHumanAirKillData %>" autogeneratecolumns="false">
     <columns>
             <asp:HyperLinkField HeaderText="<%$ Resources:Strings, PlayerName %>" DataNavigateUrlFields="AttackerUser" DataNavigateUrlFormatString="~/PlayerDetails.aspx?PlayerName={0}" DataTextField="AttackerUser" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>             
             <asp:BoundField HeaderText="<%$ Resources:Strings, NumberOfKills %>" DataField="NumberObjects" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, AircraftShotDown %>" DataField="AttackerUserObject" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    </div>  
    <p>
        <asp:Label ID="AIAirKills" runat="server" Text="Label"></asp:Label>
    </p>
    <div>
    <asp:GridView ID="PlayerAIAirKills" runat="server" emptydatatext="<%$ Resources:Strings, NoAIAirKillData %>" autogeneratecolumns="false">
     <columns>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Aircraft %>" DataField="AttackerUserObject" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, NumberOfKills %>" DataField="NumberObjects" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, PlayerName %>" DataField="AttackerUser" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    </div>   
    <p></p>
    <div >
    <asp:GridView ID="PlayerPlaneUseage" runat="server" emptydatatext="<%$ Resources:Strings, NoPlaneData %>" autogeneratecolumns="false">
     <columns>
        <asp:HyperLinkField HeaderText="<%$ Resources:Strings, PlaneFlown %>" DataNavigateUrlFields="PlayerPlane" DataNavigateUrlFormatString="~/PlaneDetails.aspx?PlaneName={0}" DataTextField="PlayerPlane" ItemStyle-HorizontalAlign="Center"></asp:HyperLinkField>             
        <asp:BoundField HeaderText="<%$ Resources:Strings, TimesFlown %>" DataField="TimesFlown" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField HeaderText="<%$ Resources:Strings, PercentageFlown %>" DataField="PercentageFlown" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    </div>
    <p></p>
    <div >
    <asp:GridView ID="PlayerPlaneLoadoutFuel" runat="server" emptydatatext="<%$ Resources:Strings, NoLoadFuelData %>" autogeneratecolumns="false">
     <columns>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Loadout %>" DataField="LoadOut" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Carried %>" DataField="NumberofTakeOffs" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, PercentageLoadout %>" DataField="LoadoutPercent" ItemStyle-HorizontalAlign="Center"></asp:BoundField>             
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    </div>    
    <p></p>
    <div>
    <asp:GridView ID="PlayerObjectKills" runat="server" emptydatatext="<%$ Resources:Strings, NoGroundKillData %>" autogeneratecolumns="false">
     <columns>
             <asp:BoundField HeaderText="<%$ Resources:Strings, GroundObjectDestroyed %>" DataField="AttackerUserObject" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
             <asp:BoundField HeaderText="<%$ Resources:Strings, Number %>" DataField="NumberObjects" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
    </columns>
     <rowstyle backcolor="LightCyan"  
           forecolor="DarkBlue"
           font-italic="true"/>

        <alternatingrowstyle backcolor="PaleTurquoise"  
          forecolor="DarkBlue"
          font-italic="true"/>
    </asp:GridView>
    </div>   
    
</asp:Content>

